package com.walala.logic.common;

public class Constant {

	public static final int PACK_HEAD_LENGTH = 48;

	public static final Object USER_TOKEN_REDIS_KEY = "user_token_";

	public static final String MSG_HANDLER_PACK_PATH = "com.walala.logic.handler";

	public static String Kafka_Notice_Msg_Topic = "notice_msg";

	public static final String Redis_Connector_key = "user_connector_";

	public static final String Session_Seq_Key = "session_seq_";

    public static final int pack_start_tag = 0x2;

    public static final int pack_end_tag = 0x3;

    // 包返回状态码
	public static enum Result_Code {
		ok((byte) 0),
		paramError((byte) -1), 
		invalidToken((byte) -2);
		public byte value;

		private Result_Code(byte value) {
			this.value = value;
		}
	}

	public static enum Session_Type{
		single(1),
		group(2);
		public int value;
		private Session_Type(int value){
			this.value = value;
		}
	}
}
